package org.lstt.ExcelReader;


import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

/**
 * Hello world!
 *
 */
public class App {
	public static void main(String[] args) throws IOException {
		CellReader cellRead = new ObjectCellReader();

		System.out.println("Hello World!");
		String fileName = "/root/下载/一二手房交易-模板.xlsx";

		File file = new File(fileName);
		if (!file.exists()) {
			System.out.println("文件不存在==>");
			System.out.println(fileName);
			return;
		}

		List<Object[]> datas = PoiExcelUtil.readExcelString(new FileInputStream(file), fileName,2);

		// sheet.

		System.out.println("guanbi");

		System.out.println("guanbi chenggong");
	}

}
